<?php

namespace app\command;

use support\think\Db;
use think\Exception;

class Minute
{
    // 每分钟执行一次的定时任务
    public static function cron()
    {
        $log_folder = 'cron_minute';
        log_info("---> Cron Minute begin...", 'INFO', $log_folder);

        try {
            /*//$folderPath = config('path.upload_path');
            $folderPath = config('path.full_upload_path');
            $filePath = 'download/' . date('Y-m') . '/' . date('d');
            if (!file_exists($folderPath . $filePath)) {
                mkdir($folderPath . $filePath, 0777, true);
            }*/
        } catch (Exception $e) {
            $msg = $e->getMessage();
            log_info("---> Cron Minute error: " . $msg, 'ERROR', $log_folder);
        }

        log_info("---> Cron Minute end...", 'INFO', $log_folder);
    }
}